import axios from 'axios'

export function getNoticeList (id) {
  return axios({
    method: 'GET',
    url: `https://ynwx.zgwyzxw.cn/index.php/home/article/announce/?areas_id=${id}`
  }).then((res) => {
    return Promise.resolve(res.data)
  }).catch((err) => {
    return Promise.reject(err)
  })
}
export function getNoticeDetail (id) {
  return axios({
    method: 'GET',
    url: `https://ynwx.zgwyzxw.cn/index.php/home/article/artDetail/?id=${id}`
  }).then((res) => {
    return Promise.resolve(res.data)
  }).catch((err) => {
    return Promise.reject(err)
  })
}
